#鸡 x 兔35-x
#2x 4(35-x)

for i in range(1, 35):
     if 2 * i + 4 * (35 - i) == 94:
         print(f'鸡有{i}只, 兔有{35-i}只')